package cn.tedu.bece.admin.system.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class SysMenuUpdateParam {

    @NotNull(message = "菜单id不能为空")
    @ApiModelProperty(value = "菜单id", required = true)
    private Long id;

    @ApiModelProperty("上级id")
    private Long parentId;

    @ApiModelProperty("菜单类型（M目录，C菜单，F按钮，L链接）")
    private String type;

    @NotEmpty(message = "菜单名称不能为空")
    @ApiModelProperty(value = "菜单名称", required = true)
    private String name;

    @ApiModelProperty("菜单图标")
    private String icon;

    @ApiModelProperty("排序序号")
    private Integer sort;

    @ApiModelProperty("组件路径")
    private String component;

    @ApiModelProperty("路由地址")
    private String path;

    @ApiModelProperty("权限标识")
    private String perms;

    @ApiModelProperty("显示状态（0显示，1隐藏）")
    private Integer visible;

}
